#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

typedef struct ListNode {
	int val;
	struct ListNode* next;
}LTNode;

//typedef struct ListNode LTNode;

int main()
{
	LTNode* n1 = (LTNode*)malloc(sizeof(LTNode));
	n1->val = 1;
	n1->next = NULL;

	LTNode* n2 = (LTNode*)malloc(sizeof(LTNode));
	n2->val = 4;
	n2->next = NULL;

	LTNode* n3 = (LTNode*)malloc(sizeof(LTNode));
	n3->val = 5;
	n3->next = NULL;

	n1->next = n2;
	n2->next = n3;

	LTNode* n4 = (LTNode*)malloc(sizeof(LTNode));
	n4->val = 1;
	n4->next = NULL;

	LTNode* n5 = (LTNode*)malloc(sizeof(LTNode));
	n5->val = 3;
	n5->next = NULL;

	LTNode* n6 = (LTNode*)malloc(sizeof(LTNode));
	n6->val = 4;
	n6->next = NULL;

	n4->next = n5;
	n5->next = n6;

	LTNode* n7 = (LTNode*)malloc(sizeof(LTNode));
	n7->val = 2;
	n7->next = NULL;

	LTNode* n8 = (LTNode*)malloc(sizeof(LTNode));
	n8->val = 6;
	n8->next = NULL;

	n7->next = n8;

	LTNode* Array[] = {n1,n4,n7};

	return 0;
}